package swa.group22;
import java.util.Collection;
import java.util.Map;

import swa2012.telco.broker.beans.Client;


public class ClientStore implements iClientStore{

	
	private Map<String, Client> connectedClients;
/**
 * Method to add a client to the client store.
 * 
 * @param client client to add
 */
	@Override
	public void addClient(Client client) {
		connectedClients.put(client.getID(), client);
	}

	/**
	 * Method to get all clients.
	 * 
	 * @return collection of client beans
	 */
	@Override
	public Collection<Client> getClients() {
		return connectedClients.values();
	}

	/**
	 * Method to remove a client from the client store.
	 * 
	 * @param client id
	 */
	@Override
	public void removeClient(String id) {
		connectedClients.remove(id);
	}
	


}
